﻿
#include "CMainWindow.h"

LRESULT CMainWindow::HandleMessage(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
	switch (uMsg) {
		HANDLE_MSG(hwnd, WM_DESTROY, _OnDestroy);
	}
	return DefWindowProc(hwnd, uMsg, wParam, lParam);
}

//
//  Process WM_DESTROY message for window/dialog: 
//
void CMainWindow::_OnDestroy(HWND hwnd)
{
	PostQuitMessage(0);
}
